Add support for split DNS#1274
Conversation
Parse the /remote/fortisslvpn_xml response to get the split-dns configuration.
|
How does setting environment variables |
|
pppd gets this envs (same as VPN_ROUTE_*), and setup dnsmasq to handle multi splitsdns situation. (systemd-resolved doest support splitdns in same interface :( ) |
|
And this is the other side which collects the envs and pass to network manager: (that code is still in WIP!) |
|
This doesn't work with plain openfortivpn. |
|
what is not working for you? have you |
|
openfortivpn handles DNS internally by default. |
Sure. if you run openfortivpn in standalone. With network-manager (gui), ip+routing+dns settings are handled by NM. Thats why ip/dns/routing rules are passed to envvars, and pickup by the linked networkmanager plugin. With this patch splitdns infos are set to env too and nm plugin can/will handle it. |
|
Because this is the repository for the standalone openfortivpn, adding features unrelated to the standalone case is not really an option. Let me try to find some common ground. My vision for the long term evolution of openfortivpn is as follows:
Because |
Forti can send multiple split dns config in xml:
This means, use one dns server for domain A+B, and use another dns server for domain C.
This patch parse the /remote/fortisslvpn_xml response to get the split-dns configuration, and pass the info to envs, same logic as ip4 routes.